/* 主容器样式 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #217346 0%, #0f5132 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 表单容器 */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* 表单卡片 */
.form-card {
    height: 100%;
}

.form-card .card {
    height: 100%;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.form-card .card:hover {
    transform: translateY(-2px);
}

.form-card .card-body {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 上传区域样式 - 固定高度 */
.upload-area {
    border: 2px dashed #007bff;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 280px;
    max-height: 280px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    border-color: #0056b3;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.upload-area.dragover {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

/* 文件信息区域 - 绝对定位，不影响布局 */
#fileInfo {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    margin: 0 !important;
    z-index: 10;
}

#fileInfo .alert {
    margin-bottom: 0;
    padding: 8px 12px;
    font-size: 0.9em;
    border-radius: 6px;
}

/* 当有文件时，调整上传区域内容 */
.upload-area.has-file {
    padding-top: 20px;
    padding-bottom: 60px; /* 为文件信息留出空间 */
}

.upload-area.has-file > *:not(#fileInfo) {
    transform: scale(0.8);
    margin-bottom: 10px;
}

/* 按钮样式 */
.btn-custom {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-custom:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

/* 进度容器 */
.progress-container {
    margin-top: 20px;
    display: none;
}

.progress-container .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* 结果容器 */
.result-container {
    margin-top: 20px;
    display: none;
}

.result-container .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 单选按钮样式 */
.form-check {
    margin-bottom: 10px;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .upload-area {
        min-height: 200px;
        max-height: 200px;
        padding: 20px 15px;
    }
    
    .form-card .card-body {
        padding: 20px;
    }
    
    .header {
        padding: 15px;
    }
    
    .main-container {
        padding: 15px;
    }
}